package com.example.statemachine.demo;


public class Record {

  int returnTime;
  int borrowTime;
  Book book;
  Member member;

  public Record(Book book, Member member) {
    this.book = book;
    this.member = member;
  }

  public int getReturnTime() {
    return returnTime;
  }

  public void setReturnTime(int returnTime) {
    this.returnTime = returnTime;
  }

  public int getBorrowTime() {
    return borrowTime;
  }

  public void setBorrowTime(int borrowTime) {
    this.borrowTime = borrowTime;
  }

  public Book getBook() {
    return book;
  }

  public void setBook(Book book) {
    this.book = book;
  }

  public Member getMember() {
    return member;
  }

  public void setMember(Member member) {
    this.member = member;
  }

  public String show() {
    StringBuffer sb = new StringBuffer();
    sb.append("bookId: ").append(book.getBookId()).append(" , bookName: ").append(book.getBookName())
        .append(" , memberId: ").append(member.getMemberId()).append(" , memberName: ").append(member.getMemberName())
        .append(" , borrowTime: ").append(borrowTime).append(" , returnTime: ").append(returnTime);
    System.out.println(sb.toString());

    return sb.toString();

  }
}
